package com.quad.innovators.salesease.model.query.warehouse;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.quad.innovators.salesease.common.base.BasePageQuery;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author : shanshan.li
 * @createTime : 2024/12/18 15:45
 * @Version : 1.0 
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "销售退货单信息查询对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SaleReturnOrderQuery extends BasePageQuery {
    @Schema(description = "门店code")
    private String shopCode;

    @Schema(description = "订单状态")
    private Integer orderStatus;

    @Schema(description = "审核开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate auditStartTime;

    @Schema(description = "审核结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate auditEndTime;

    @Schema(description = "签收开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate receiveStartTime;

    @Schema(description = "签收结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate receiveEndTime;

    @Schema(description = "单独设置为小程序使用")
    private Boolean H5Request;
}
